home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 11.0 KB | 385 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: SLResFil.xih.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxih.dll: 2.33
- */
-
- /*
- *
- *
- * File: SLResour.idl
- * Release Version: $ ODF 1 $
- *
- * Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- *
- *
- */
-
-
- #ifndef SOM_FW_OResourceFile_xih
- #define SOM_FW_OResourceFile_xih
-
- #include <somcls.xh>
- #include <somcm.xh>
-
- /*
- * Passthru lines: File: "C.xih", "before"
- */
-
-
- #ifndef SOM_FW_OResourceFile_xh
- #include <SLResFil.xh>
- #endif
-
- /*
- * Set the scope of methods functions
- */
- #ifndef SOM_Scope
- #define SOM_Scope extern "C"
- #endif
-
- #define FW_OResourceFile_MaxNoMethods 9
-
- /*
- * -- Instance Data
- */
-
- /*
- * -- Use best possible alignment for instance data slice.
- */
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
- typedef struct FW_OResourceFileData {
- FW_Boolean fMustCloseFile;
- FW_ResourceFileID fResourceFileID;
- FW_OFileSpecification* fFileSpec;
- } FW_OResourceFileData;
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- /*
- * -- Getdata Macro
- */
-
- /*
- * -- This emitter treats Data Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to override this default.
- */
- SOMEXTERN typedef FW_OResourceFileData* (* SOMLINK somTD_FW_OResourceFile_DataThunk)(void*);
- #define FW_OResourceFileGetData(somSelf) \
- (((somTD_FW_OResourceFile_DataThunk)(FW_OResourceFileClassData.instanceDataToken))(somSelf))
-
- /*
- * -- Instance Data Access Macros for use in Method Procedures
- */
- #ifdef VARIABLE_MACROS
- #define _fMustCloseFile (somThis->fMustCloseFile)
- #define _fResourceFileID (somThis->fResourceFileID)
- #define _fFileSpec (somThis->fFileSpec)
- #endif
-
-
- /*
- * Trace/Debug macro
- */
- #ifndef FW_OResourceFileMethodDebug
- #define FW_OResourceFileMethodDebug(c,m) SOMMethodDebug(c,m)
- #endif
-
- /*
- * -- Method Macros for use in Method Procedures
- */
- #ifdef METHOD_MACROS
- #define _Acquire somSelf->Acquire
- #define _Release somSelf->Release
- #define _GetRefCount somSelf->GetRefCount
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #define _somDuplicateReference somSelf->somDuplicateReference
- #define _somCompareReference somSelf->somCompareReference
- #define _somRelease somSelf->somRelease
- #define _somFree somSelf->somFree
- #define _somCanDelete somSelf->somCanDelete
- #define _somGetClass somSelf->somGetClass
- #define _somGetClassName somSelf->somGetClassName
- #define _somGetSize somSelf->somGetSize
- #define _somIsA somSelf->somIsA
- #define _somRespondsTo somSelf->somRespondsTo
- #define _somIsInstanceOf somSelf->somIsInstanceOf
- #define _somDispatch somSelf->somDispatch
- #define _somClassDispatch somSelf->somClassDispatch
- #define _somCastObj somSelf->somCastObj
- #define _somResetObj somSelf->somResetObj
- #define _somPrintSelf somSelf->somPrintSelf
- #define _somDumpSelf somSelf->somDumpSelf
- #define _somDumpSelfInt somSelf->somDumpSelfInt
- #define _InitFromFileSpec somSelf->InitFromFileSpec
- #define _InitFromResFileID somSelf->InitFromResFileID
- #define _GetFileSpecification somSelf->GetFileSpecification
- #define _HasResource somSelf->HasResource
- #define _GetResourceHandle somSelf->GetResourceHandle
- #define _ReleaseResourceHandle somSelf->ReleaseResourceHandle
- #define _PrivHasSpecialResource somSelf->PrivHasSpecialResource
- #define _PrivGetSpecialResource somSelf->PrivGetSpecialResource
- #define _PrivGetResourceFileID somSelf->PrivGetResourceFileID
- #define _somInit somSelf->somInit
- #define _somUninit somSelf->somUninit
- #endif
-
-
- /*
- * Introduced methods
- */
-
- /* New Method: InitFromFileSpec */
- SOM_Scope void SOMLINK FW_OResourceFile__InitFromFileSpec(FW_OResourceFile *somSelf, Environment *ev,
- FW_OFileSpecification* newFileSpec);
-
- /* New Method: InitFromResFileID */
- SOM_Scope void SOMLINK FW_OResourceFile__InitFromResFileID(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceFileID resFileID);
-
- /* New Method: GetFileSpecification */
- SOM_Scope FW_OFileSpecification* SOMLINK FW_OResourceFile__GetFileSpecification(FW_OResourceFile *somSelf, Environment *ev);
-
- /* New Method: HasResource */
- SOM_Scope FW_Boolean SOMLINK FW_OResourceFile__HasResource(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceId resourceId,
- FW_ResourceType resourceType);
-
- /* New Method: GetResourceHandle */
- SOM_Scope FW_ResourceHandle SOMLINK FW_OResourceFile__GetResourceHandle(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceId resourceId,
- FW_ResourceType resourceType);
-
- /* New Method: ReleaseResourceHandle */
- SOM_Scope void SOMLINK FW_OResourceFile__ReleaseResourceHandle(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceHandle handle);
-
- /* New Method: PrivHasSpecialResource */
- SOM_Scope FW_Boolean SOMLINK FW_OResourceFile__PrivHasSpecialResource(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceId resourceId,
- FW_ResourceType resourceType);
-
- /* New Method: PrivGetSpecialResource */
- SOM_Scope FW_PlatformHandle SOMLINK FW_OResourceFile__PrivGetSpecialResource(FW_OResourceFile *somSelf, Environment *ev,
- FW_ResourceId resourceId,
- FW_ResourceType resourceType);
-
- /* New Method: PrivGetResourceFileID */
- SOM_Scope FW_ResourceFileID SOMLINK FW_OResourceFile__PrivGetResourceFileID(FW_OResourceFile *somSelf, Environment *ev);
-
- /*
- * Overridden methods
- */
-
- /* Overridden method: somInit */
- SOM_Scope void SOMLINK FW_OResourceFile__somInit(FW_OResourceFile *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OResourceFile_somInit)(FW_OResourceFile *somSelf);
- inline void SOMLINK FW_OResourceFile_parent_FW_ORefCount_somInit(FW_OResourceFile *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OResourceFile_parents_somInit(arg0) \
- (void) FW_OResourceFile_parent_FW_ORefCount_somInit(arg0)
-
- /* Overridden method: somUninit */
- SOM_Scope void SOMLINK FW_OResourceFile__somUninit(FW_OResourceFile *somSelf);
- SOMEXTERN typedef void (* SOMLINK somTD_xih_FW_OResourceFile_somUninit)(FW_OResourceFile *somSelf);
- inline void SOMLINK FW_OResourceFile_parent_FW_ORefCount_somUninit(FW_OResourceFile *somSelf)
- {
- (void) (somSelf);
- }
- #define FW_OResourceFile_parents_somUninit(arg0) \
- (void) FW_OResourceFile_parent_FW_ORefCount_somUninit(arg0)
-
- /*
- * -- Primary Implementation File Support
- */
- #if (defined(FW_OResourceFile_Class_Source) || defined(SOM_Module_slresfil_Source))
-
- /*
- * -- The FW_OResourceFile ClassData Structure
- */
-
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma export list FW_OResourceFileClassData
- #endif
-
-
- /*
- * -- The FW_OResourceFile Class Ancestor Table
- */
- static somClassDataStructure * SOMDLINK FW_OResourceFileClassAncestors [] = {
- (somClassDataStructure*) & FW_ORefCountClassData, /* parent */
- (somClassDataStructure*) & SOMObjectClassData, /* ancestor */
- };
-
-
- /*
- * -- The FW_OResourceFile Override ProcPtr Implementations Table
- */
- static somMethodPtr FW_OResourceFileOverrideProcs [] = {
- (somMethodPtr) FW_OResourceFile__somInit, /* override class SOMObject */
- (somMethodPtr) FW_OResourceFile__somUninit, /* override class SOMObject */
- };
-
-
- static void FW_OResourceFileDLLD ( void ) { }
-
-
- /*
- * -- The FW_OResourceFile Static Class Info Master Table
- */
- static somStaticClassInfo FW_OResourceFileSCI = {
- 70, /* layout version */
- (somClassDataStructure*) & FW_OResourceFileClassData, /* main token table */
- FW_OResourceFileOverrideProcs, /* override proc implemenations table */
- FW_OResourceFileClassAncestors, /* ancestor table */
- FW_OResourceFileDLLD, /* DLLdesignator */
- 0, /* no special procs */
- 0, /* rtci slot */
- 0, /* count slot */
- 0, /* dynamic ancestry */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
-
- /*
- * -- The FW_OResourceFile Counts Table
- */
- (somStaticClassCounts *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- "\x00\x00\x00\x01" /* flags */
- "\x00\x02" /* type code alignment */
- "\x00\x0b" /* classTokenCount */
- "\x00\x01" /* numDirectParents */
- "\x00\x00" /* numMetaClasses */
- "\x00\x01" /* numOverriddenAncestors */
- "\x00\x00" /* numMigratedMethods */
- "\x00\x00" /* numSelectedInherited */
- "\x00\x00" /* numUnused */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00\x00" /* free */
- "\x00" /* free */
- ,
-
- {
- "FW_OResourceFile", /* the class name */
- sizeof (FW_OResourceFileData), /* class instance data size */
-
- /*
- * -- The FW_OResourceFile Parent Versions Table
- */
- (somParentVersions *)
- "\x00\x00\x00\x01" /* majorversion */
- "\x00\x00\x00\x00" /* minorversion */
- ,
-
-
- /*
- * -- The FW_OResourceFile Token Slot Usage Table
- */
- (somSlotUsage *)
- "\x33\x00\x00\x00\x00",
-
-
- /*
- * -- The FW_OResourceFile Method Signature Info
- */
- (somSignatureInfo *)
- "\x03\x07" /* InitFromFileSpec */
- "\x03\x17\xc3" /* InitFromResFileID */
- "\x02\x0c" /* GetFileSpecification */
- "\x04\x10\xc2\x40" /* HasResource */
- "\x04\x1c\xc2\x40" /* GetResourceHandle */
- "\x03\x07" /* ReleaseResourceHandle */
- "\x04\x10\xc2\x40" /* PrivHasSpecialResource */
- "\x04\x1c\xc2\x40" /* PrivGetSpecialResource */
- "\x02\x03" /* PrivGetResourceFileID */
- ,
-
-
- /*
- * -- The FW_OResourceFile Class Method Names
- */
- "somInit\0"
- "somUninit\0"
- "InitFromFileSpec\0"
- "InitFromResFileID\0"
- "GetFileSpecification\0"
- "HasResource\0"
- "GetResourceHandle\0"
- "ReleaseResourceHandle\0"
- "PrivHasSpecialResource\0"
- "PrivGetSpecialResource\0"
- "PrivGetResourceFileID\0"
- ,
-
-
- /*
- * -- The FW_OResourceFile Override Slots Table
- */
- (somOverrideData *)
- "\x00\x01\x00\x02" /* parent SOMObject has 2 overrides */
- "\x00\x00" /* somInit */
- "\x00\x01" /* somUninit */
- ,
-
- 0, /* no migrated methods table */
- 0, /* no selected inherited */
- 0, /* unused */
-
- 0, /* free */
- 0, /* free */
- 0, /* free */
- 0, /* free */
- },
- };
-
- /*
- * -- The FW_OResourceFile ClassData Structure
- */
- struct FW_OResourceFileClassDataStructure SOMDLINK FW_OResourceFileClassData = {
- 0, /* zero */
- & FW_OResourceFileSCI, /* SCI link */
- 0, /* instanceDataToken */
- 0, /* reserved */
- 0, /* reserved */
- 0, /* reserved */
- (somMToken) 0, /* somInit:empty */
- (somMToken) 0, /* somUninit:empty */
- (somMToken) FW_OResourceFile__InitFromFileSpec, /* InitFromFileSpec:method */
- (somMToken) FW_OResourceFile__InitFromResFileID, /* InitFromResFileID:method */
- (somMToken) FW_OResourceFile__GetFileSpecification, /* GetFileSpecification:method */
- (somMToken) FW_OResourceFile__HasResource, /* HasResource:method */
- (somMToken) FW_OResourceFile__GetResourceHandle, /* GetResourceHandle:method */
- (somMToken) FW_OResourceFile__ReleaseResourceHandle, /* ReleaseResourceHandle:method */
- (somMToken) FW_OResourceFile__PrivHasSpecialResource, /* PrivHasSpecialResource:method */
- (somMToken) FW_OResourceFile__PrivGetSpecialResource, /* PrivGetSpecialResource:method */
- (somMToken) FW_OResourceFile__PrivGetResourceFileID, /* PrivGetResourceFileID:method */
- };
-
-
- /*
- * Functions for attributes.
- */
-
- /*
- * Macros for initializers/destructors
- */
-
- #endif /* Primary Implementation Support */
-
- #endif /* SOM_FW_OResourceFile_xih */
-